HTML Essentials by Smashing Magazine

HTML Essentials by Smashing Magazine

Author:Smashing Magazine
Language: eng
Format: epub
Tags: Smashing eBooks
Published: 2012-07-16T16:00:00+00:00


<li><a href="http://www.lastfm.es/user/enrique-ramirez" rel="me">last.fm</a></li>

<li><a href="http://website.com/feed/" rel="alternate">rss</a></li>

<li><a href="http://twitter.com/enrique_ramirez" rel="me">twitter</a></li>

</ul>

</div><!-- /.social -->

</section><!-- /#extras -->

THE ABOUT AND FOOTER BLOCKS

The footer has no real difficulty. We’ll use the brand new <footer> tag to wrap both the about and the copyright information since the spec reads:

The footer element represents a footer for its nearest ancestor sectioning content. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like.

Since the nearer ancestor of our <footer> tag is the <body> tag, is more than right to wrap both elements here since we’re adding information about the website’s owner (and thus, author).

For the about block we’ll use an <address> tag, which “contains contact information for it’s nearest <article> or <body> element ancestor”. We’ll also use the hCard Microformat to enhance the semantic value. For the copyright information we’ll go with a simple <p> tag so the code ends like this:

<footer id="contentinfo" class="body">

<address id="about" class="vcard body">

<span class="primary">

<strong><a href="#" class="fn url">Smashing Magazine</a></strong>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.